/* AddTracks 组件样式 */
.add-tracks-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: transparent;
    border-top: 1px solid #404040;
    transition: all 0.3s ease;
}

.add-tracks-container:hover {
    background: transparent;
}

.add-tracks-button {
    height: 36px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
    transition: all 0.3s ease;
}

.add-tracks-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

/* 模态框样式 */
.add-tracks-modal .ant-modal-header {
    background: #1f1f1f;
    border-bottom: 1px solid #303030;
}

.add-tracks-modal .ant-modal-content {
    background: #1f1f1f;
    border-radius: 12px;
}

.add-tracks-modal .ant-modal-body {
    padding: 24px;
}

.add-tracks-modal .ant-modal-footer {
    background: #1f1f1f;
    border-top: 1px solid #303030;
    border-radius: 0 0 12px 12px;
}

.add-tracks-modal .ant-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* 轨道类型选择区域 */
.track-type-selection {
    margin-top: 8px;
}

.track-type-card {
    height: 120px;
    border-radius: 12px;
    border: 2px solid #303030;
    background: #262626;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.track-type-card:hover {
    border-color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.track-type-card.selected {
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    background: #1a1a2e;
}

.track-type-card .ant-card-body {
    padding: 20px 16px;
    height: 100%;
    display: flex;
    align-items: center;
}

.track-type-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.track-type-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.track-type-card:hover .track-type-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.track-type-card.selected .track-type-icon {
    background: rgba(24, 144, 255, 0.2);
}

.track-type-info {
    flex: 1;
    text-align: left;
}

.track-type-info .ant-typography {
    color: #fff !important;
    margin: 0;
}

.track-type-info .ant-typography-caption {
    color: #8c8c8c !important;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .add-tracks-modal {
        margin: 0;
        max-width: 100vw;
    }

    .track-type-selection .ant-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .track-type-card {
        height: 100px;
    }

    .track-type-content {
        gap: 12px;
    }

    .track-type-icon {
        width: 40px;
        height: 40px;
    }

    .track-type-icon svg {
        font-size: 20px !important;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.track-type-card {
    animation: fadeInUp 0.3s ease forwards;
}

.track-type-card:nth-child(1) {
    animation-delay: 0.1s;
}

.track-type-card:nth-child(2) {
    animation-delay: 0.2s;
}

.track-type-card:nth-child(3) {
    animation-delay: 0.3s;
}

.track-type-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* 深色主题适配 */
.add-tracks-modal .ant-btn-primary {
    background: #1890ff;
    border-color: #1890ff;
}

.add-tracks-modal .ant-btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

.add-tracks-modal .ant-btn-default {
    background: #262626;
    border-color: #404040;
    color: #fff;
}

.add-tracks-modal .ant-btn-default:hover {
    background: #303030;
    border-color: #595959;
    color: #fff;
}